package com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

import com.listener.PropertiesListener;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.*.dao")
@ServletComponentScan
@EnableTransactionManagement
public class Ylt_WeChatApplication {
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(Ylt_WeChatApplication.class);
		application.addListeners(new PropertiesListener("application.properties"));
		application.run(args);
	}
}
